#!/bin/bash
echo "############################# UPDATE START ################################"
echo "1. flutter upgrade start"
flutter upgrade
echo "1. flutter upgrade end"
echo "2. flutter get_cli upgrade start"
flutter pub global activate get_cli
echo "2. flutter get_cli upgrade end"
echo "3. flutter pub upgrade start"
flutter pub upgrade --major-versions
echo "3. flutter pub upgrade end"
echo "4. flutter pub get start"
flutter pub get
echo "4. flutter pub get end"
echo "5. flutter pub outdated start"
flutter pub outdated
echo "5. flutter pub outdated end"
echo "6. flutter_native_splash start"
dart pub run flutter_native_splash:create
echo "6. flutter_native_splash end"
echo "7. flutter pub run build_runner build start"
flutter pub run build_runner build
echo "7. flutter pub run build_runner build end"
echo "8. flutter build web start"
flutter build web  --no-tree-shake-icons
mv build/web dist/
echo "8. flutter build web end"
echo "############################# UPDATE END ##################################"
